import axios from "~/axios";

export function getImage(id, page) {
  return axios.get(`/upload?image_cate_id=${id}&page=${page}`);
}

export function updateImage(id, name) {
  return axios.put(`/upload/${id}`, { name });
}

export function deleteImage(id) {
  return axios.delete(`/upload/${id}`);
}
